﻿@model IEnumerable<GSLMS.Entity.TB_LOAN_MAIN>
@{
    Layout = null;
    int i = 1;
    var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.TB_LOAN_MAIN ?? new GSLMS.Entity.TB_LOAN_MAIN();
    var ddlProduct = ViewData["Product"] as SelectList;

    SearchParma.APPLYDATE = DateTime.Now.AddMonths(-1);
    SearchParma.APPLYDATE_END = DateTime.Now;
    ViewData["reSearchDiv"] = "divHFeesFree";    
}
<div id="divHFeesFree">
    <form id="pagerForm" method="get" action="DianDang/BMAudit/bManager/HFeesFree?action=page&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="@SearchParma.CurrentIndex" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="CUSTNAME" value="@SearchParma.CUSTNAME" />
    <input type="hidden" name="LOANNO" value="@SearchParma.LOANNO" />
    <input type="hidden" name="REGDATE" value="@SearchParma.APPLYDATE" />
    <input type="hidden" name="REGDATE_END" value="@SearchParma.APPLYDATE_END" />
    <input type="hidden" name="STATUS" value="@SearchParma.PRODUCTID" />
    </form>
    <div class="pageHeader">
        <form onsubmit="return divSearch(this,'divHFeesFree')" id="Form_@ViewData["CurrentController"]" action="DianDang/BMAudit/bManager/HFeesFree?action=search&OpID=@ViewData["OperateID"]"
    method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <th>
                        客户名称：
                    </th>
                    <td>
                        @Html.TextBox("CUSTNAME", SearchParma.CUSTNAME, new { @style="width:100px;"})
                    </td>
                    <th>
                        贷款号：
                    </th>
                    <td>
                        @Html.TextBox("CUSTNO", SearchParma.LOANNO, new { @style = "width:100px;" })
                    </td>
                    <th>
                        申请日期：
                    </th>
                    <th>
                        @Html.TextBox("CREATEDATE", SearchParma.APPLYDATE, new { @class = "date", @style = "width:70px;", format = "yyyy-MM-dd", @maxDate = "%y-%M-%d", @readonly = "true", formatDate = "yyyy-MM-dd" })
                    </th>
                    <th>
                        ~
                        @Html.TextBox("CREATEDATE_END", SearchParma.APPLYDATE_END, new { @class = "date", @style = "width:70px;", format = "yyyy-MM-dd", @maxDate = "%y-%M-%d", @readonly = "true", formatDate = "yyyy-MM-dd" })
                    </th>
                    <th>
                        &nbsp;&nbsp;贷款产品:
                    </th>
                    <td>
                        @Html.DropDownList("ProductID", ddlProduct, GSLMS.WebAPP.HelperCommon.SelectDefaultValue, new { @style = "width:80px;" })
                    </td>
                    <td align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                检索</button></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="reset" name="reset">
                                                重置</button></div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </div>
    <div class="pageContent">
        <table class="list" layouth="360">
            <thead>
                <tr class="header">
                    <th style="width:135px;">
                        客户名称
                    </th>
                    <th style="width:100px;">
                        贷款号
                    </th>
                    <th style="width:80px;">
                        贷款产品
                    </th>
                    <th style="width:100px;">
                        申请日期
                    </th>
                    <th style="width:60px;">
                        操作
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model)
            {            
                <tr>
                    <td>
                        @item.CUSTNAME
                    </td>
                    <td>
                       @item.LOANNO
                    </td>
                    <td>
                        @item.PRODUCTNAME
                    </td>
                    <td>
                       <span formatedate="yyyy-MM-dd"> @item.APPLYDATE</span>
                    </td>
                    <td>
                        <a href='DianDang/Apply/SpecailInfo/Details/@item.ID?OpID=@ViewData["OperateID"]' target="dialog" rel="divQueryPro">
                            查看</a>
                    </td>
                </tr>
                i += 1;
            }
        </table>
    </div>
       @Html.Partial("PageBar")
</div>
